/**
 * 一维数组动态和
 *
 * @USER: Administrator
 * @DATE: 2024/9/15 下午1:16
 * @VERSION: 1.0.0
 */
public class LC1480 {
    public static void main(String[] args) {

    }

    public int[] runningSum(int[] nums) {
        int[] res = new int[nums.length];
        int sum = 0;
        for (int i = 0; i < nums.length; i++) {
            sum+=nums[i];
            res[i] = sum;
        }
        return res;
    }

}
